from django.db import models

# Create your models here.
from django.db import models


class SystemInfoModel(models.Model):
    object = models.Manager
    # 系统信息
    system_type = models.CharField(max_length=64)
    system_model = models.CharField(max_length=128)
    cpu = models.CharField(max_length=128)
    disk = models.CharField(max_length=128)
    ram = models.CharField(max_length=64)

    # 回收站路径
    recycle_path = models.CharField(max_length=256)
    # 建站路径
    set_path = models.CharField(max_length=256)
    # 备份目录
    backup_path = models.CharField(max_length=256)

    # ip
    ip = models.GenericIPAddressField()  # 服务器ip
    authorized_ip = models.CharField(max_length=512)  # 授权访问ip

    class Meta:
        db_table = "sys_info"
        verbose_name = "系统信息"
